package xyz.penghaonan.p2plib.utils;

import android.net.wifi.p2p.WifiP2pDevice;
import android.net.wifi.p2p.WifiP2pGroup;
import android.net.wifi.p2p.WifiP2pInfo;

import androidx.annotation.NonNull;

import com.penghaonan.appframework.utils.Logger;

import java.util.Collection;

import xyz.penghaonan.p2plib.helper.p2phelper.WifiP2PListener;

public class WifiP2PListenerLog implements WifiP2PListener {

    @Override
    public void onWifiP2pEnabled(boolean isEnabled) {
        Logger.i("P2PListener.onWifiP2pEnabled:" + isEnabled);
    }

    @Override
    public void onCreateGroup(boolean isSuccess) {
        Logger.i("P2PListener.onCreateGroup:" + isSuccess);
    }

    @Override
    public void onRemoveGroup(boolean isSuccess) {
        Logger.i("P2PListener.onRemoveGroup:" + isSuccess);
    }

    @Override
    public void onDiscoverPeers(boolean isSuccess) {
        Logger.i("P2PListener.onDiscoverPeers:" + isSuccess);
    }

    @Override
    public void onConnectCallChanged(boolean isConnected) {
        Logger.i("P2PListener.onConnectCallChanged:" + isConnected);
    }

    @Override
    public void onDisConnectCallChanged(boolean isDisConnected) {
        Logger.i("P2PListener.onDisConnectCallChanged:" + isDisConnected);
    }

    @Override
    public void onSelfDeviceAvailable(@NonNull WifiP2pDevice wifiP2pDevice) {
        Logger.i("P2PListener.onSelfDeviceAvailable:" + wifiP2pDevice);
    }

    @Override
    public void onConnectionInfoAvailable(WifiP2pInfo wifiP2pInfo) {
        Logger.i("P2PListener.onConnectionInfoAvailable:" + wifiP2pInfo);
    }

    @Override
    public void onPeersAvailable(@NonNull Collection<WifiP2pDevice> wifiP2pDeviceList) {
        Logger.i("P2PListener.onPeersAvailable:" + wifiP2pDeviceList);
    }

    @Override
    public void onGroupInfoAvailable(WifiP2pGroup group) {
        Logger.i("P2PListener.onGroupInfoAvailable:" + group);
    }
}
